import Vue from "vue";
import Vuex from "vuex";
import state from "./state";
import mutations from "./mutations";
import getters from "./getters";
import actions from "./actions";
import network from "./network/network";
Vue.use(Vuex);


export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions,
  modules: {
    network,
  },
});

/* 
import {mapState,mapMutations,mapActions,mapGetters} from "vuex"
export default {
  name: "Home",
  computed: {
      ...mapState(["txt","count"]),
      ...mapGetters(["showcount"])
  },
  methods:{
    ...mapMutations(["addN","addMutations"]),
    ...mapActions(["addAsync"]),
  }
*/